Repository navigation
fork-ci release test: call each installer's own checks, stage desk and copy heavy, notice every kit (#921) - #940
Conversation
…d copy heavy, notice every kit (#921) - heavy, model-guard, gh-apps and pc-agents get a missing_sources helper (as desk has); each installer refuses with it and the release test calls it, so the test cannot drift from the installer. pc-agents setup now refuses a source without a code file before any write (it used to stop half-way through the copy). - The release test runs heavy's copy and self-test and desk's stage (its self-test) on the release folder under a throwaway PREFIX. The staged scripts run with no visible parent, so fork-fleet.py's gate can never find and kill the Runner.Worker of the CI job that runs the test. - Every fork-kit folder needs a row in KITS or NO_INSTALLER, and each row must match what the kit's bootstrap runs (installer and --source). - Failures name their cause: a path missing from the release, a missing or wrong test row, the installer's self-test, or a check that did not run. The test removes its temp folder when it ends. Fixes #921 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
lens: merge-path · reviewer: lens agent · read at: 8fa3dda |
|
lens: state · reviewer: lens agent (Opus) · read at: 8fa3dda |
What and why
The four follow-ups the two #920 lenses asked for on
.github/scripts/fork-ci-release.test.py(the check that every kit installs from a release commit):missing_sources(source)(as desk-install has). Each installer refuses with it, and the release test calls it instead of its own copy of each loop, so the test cannot drift from the installer. pc-agentssetupnow refuses a source without a code file before it writes anything ("refused, nothing changed"). Before, it stopped half-way through the copy with a traceback.PREFIX, the test runs heavy'scopy_toolplus its self-test on the release folder. heavy's self-test is now its ownself_test(dest);installcalls the same function. The test also runs desk'sstageand its self-test. A copied script that starts loading a file the release lacks now fails here, not at install.fork-fleet.py gate. With no fleet environment the gate refuses, and it SIGKILLs the nearestRunner.Workeramong its parents, which in CI is the job running this test. The test points desk'spython3at a 6-line shim that runs each staged script withos.getppid() == 1, so the gate finds no worker and only reports. I checked this locally under a fakeRunner.Workerparent: with the shim the parent survives; without it the parent is killed (exit 137).fork-kit/folder needs a row inKITS, or inNO_INSTALLER(common, review). Before, only a folder withsbin/counted. Each row now also records the--sourceits bootstrap passes, and the test reads the kit'sbootstrap.sh(or its arm in the sharedcommon/bootstrap.sh) and checks the installer path and--sourceagainst the row. The file check then runs with that--source.The test now also deletes its temp folder when it ends. Each run used to leave 13–30 MB in
/tmp, more with the new release copies.Tests that fail without each fix
New rows build mutated copies of the release. I ran each with its fix reverted in the test only:
the heavy / model-guard / pc-agents / gh-apps row runs the installer's own missing_sourcesFAIL (each installer'smissing_sourcesis replaced by one that returns a sentinel, which a copied loop never sees).a copied heavy script that loads a file the release lacks fails the heavy self-testand the same for desk FAIL.a kit folder with only a bootstrap.sh and no row failsanda bootstrap that passes another --source than its row failsFAIL.Kit tests: each of heavy, model-guard and pc-agents gets one test that a source missing a file is refused, naming the file, before anything is written, and that
missing_sourcesof the real kit is[]. gh-apps' existing test now also checksmissing_sources.Checks run
fork-ci-release.test.py: all passed, 96 ok.install.test.py17 OK; model-guardinstall.test.py37 OK andguard.test.py97 OK; gh-appsinstall.test.py34 OK; pc-agentssetup.test.py61,check.test.py36 andupdate.test.py35 OK; deskinstall.test.py58 OK.node .github/scripts/fork-seam-check.cjs --config-ref origin/main origin/main HEAD: 0.vp fmt --check fork-ci/README.md: OK.State question
kit_install.pyit goes through that path (no helper needed). Otherwise its row must say how its check runs; a new folder with no row fails ("no row in KITS or NO_INSTALLER"), and a row whose installer has nomissing_sourcesfails as "did not run", not as a missing path.copy_toolreuses a complete version folder;missing_sourcesreads only).check_options, model-guardinstall, gh-appscopy_tool, deskinstall). pc-agents is better than before: a missing code file is now refused before any write, not after part of the copy. heavy's self-test step is the same code moved into a function, at the same step.ci/vNkeeps its old tree and old installers; nothing reads the new helpers from outside the release. The test's heavy copy and desk stage run only under a fresh tempPREFIX(never/).General vs project
General: the release test, the kit installers and the shared bootstrap are fork tooling for any project that installs the kits. No project facts are added.
KITSandNO_INSTALLERname this repository's own kit folders, and the release config's first pool is used only for desk's staging self-test.Fixes #921
🤖 Generated with Claude Code